<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$head[title]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{SITE_URL}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="../skin/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>
</head>
<body>

{template 'header.html'}

<!--<div class="container" style="margin-top:5px">
	<img src="../skin/images/goods_banner.jpg"/>
</div>-->

<div class="container">
     
	 <div class="main" style="width:750px;">
     	<style type="text/css">
			.goods {
				/*border:1px solid #D8D8D8;*/ height:auto; overflow:hidden; margin:0px 0 10px 0;
			}
			.goods .tit{
				/*background:#F6F6F6;*/ margin-top:0;
			}
			.goods ul{
				padding:0 0 0 10px;
			}
			.goods li{
				width:180px; height:350px; float:left; display:inline; overflow:hidden; margin:0 5px 10px 0; text-align:center;
			}
			.goods li p{
				margin:0px; line-height:22px;
			}
			.goods li em{
				color:#E65C73; font-weight:bold; font-size:13px; margin:0 5px;
			}
			.goods li .thumb{
				padding:4px;
			}
		 </style>
         
         <div class="mod">
            <div class="head">商品列表</div>
            <div class="body goods">
                <ul>
			  {get sql="select * from table_goods where status=99 order by updatetime desc" rows="20" page="$page"}
			   {php $r[thumb] = $r[thumb] ? $r[thumb] : 'misc/nopic.gif'}
				<li>
					<p class="thumb"><a href="{url($r[url])}"><img src="{thumb($r[thumb],170,220)}"/></a></p>
					<p><a href="{url($r[url])}" target="{$target}">{str_cut($r[title], 100)}</a></p>
					<p>￥<em>{$r[price]}</em></p>
					<p>最近30天售出<em>2213</em>笔</p>
					<p><a href="#">(已有111人评论)</a></p>
			   </li>
		
			  {/get}
			</ul>
            </div>
        </div>
		 

		<div class="pagination">{$pages}</div>
     </div>
     <div class="aside" style="width:180px">
     
     
        <div class="mod">
            <div class="head">商品分类</div>
            <div class="body">
                {loop $C $cat}
                {if !$cat[parentid]}{php $cols=1;}
                <dl>
                <dt><a href="{$cat[url]}" >{$cat[catname]}</a></dt>
                <dd>{loop $C $childcat}
                {if $cols<4 && $childcat[parentid]==$cat[catid]}<a href="{$childcat[url]}" >{$childcat[catname]}</a>
                {php $cols++;}
                {/if}
                {/loop}<a href="{$cat[url]}" >>></a>
                </dd></dl>
                {/if}
                {/loop}
            </div>
        </div>
       
        
        <div class="mod">
            <div class="head">相关阅读</div>
            <div class="body">
                <ul>
              {get sql="select * from table_content order by listorder desc,hits desc" rows="15"}
                <li><a href="{url($r[url])}">{str_cut($r[title],39)}</a><span class="hits">{$r[hits]}</span></li>
              {/get}
              </ul>
            </div>
        </div> 
     </div>
</div>

<div class="container" style="display:none">
	<div class="main">
    	
        
        <style type="text/css">
			.goods_comments{
				border:1px solid #D8D8D8; height:auto; overflow:hidden; margin:0px 0 10px 0;
			}
			.goods_comments .tit{
				background:#F6F6F6; margin-top:0; 
			}
			.goods_comments ul{
				padding:0 10px 10px 10px; height:auto; overflow:hidden;
			}
			.goods_comments ul li{
				clear:both; border-bottom:#eee solid 1px; height:auto; overflow:hidden; padding:10px 0 10px 0;
			}
			.goods_comments ul li.last{
				border-bottom:0;
			}
			.goods_comments .avatar{
				float:left; display:inline; width:70px; border-right:#eee solid 1px; margin:0 10px 0 0;
			}
			.goods_comments .name{
				padding:0px 0 0 20px;
			}
			.goods_comments p{
				margin:0;
			}
		</style>
        
        <div class="mod">
            <div class="head"><span>最新评论</span><a href="{url("?module=goods&action=insert")}">我要分享</a></div>
            <div class="body goods_comments">
                <ul>
                    <li>
                        <p class="avatar"><img src="{avatar(1)}" width="60" height="60"/></p>
                        <p class="name">点评店铺： LUNA LIMITED设计品牌品质女装●潮女人气店铺●1024</p>
                        <p class="desc">很喜欢他们的衣服，虽然是均码的，但是大少正好，比较时尚有种田园风格！ </p>
                    </li>
                    <li>
                        <p class="avatar"><img src="{avatar(1)}" width="60" height="60"/></p>
                        <p class="name">点评店铺： LUNA LIMITED设计品牌品质女装●潮女人气店铺●1024</p>
                        <p class="desc">很喜欢他们的衣服，虽然是均码的，但是大少正好，比较时尚有种田园风格！ </p>
                    </li>
                    <li>
                        <p class="avatar"><img src="{avatar(1)}" width="60" height="60"/></p>
                        <p class="name">点评店铺： LUNA LIMITED设计品牌品质女装●潮女人气店铺●1024</p>
                        <p class="desc">很喜欢他们的衣服，虽然是均码的，但是大少正好，比较时尚有种田园风格！ </p>
                    </li>
                    <li>
                        <p class="avatar"><img src="{avatar(1)}" width="60" height="60"/></p>
                        <p class="name">点评店铺： LUNA LIMITED设计品牌品质女装●潮女人气店铺●1024</p>
                        <p class="desc">很喜欢他们的衣服，虽然是均码的，但是大少正好，比较时尚有种田园风格！ </p>
                    </li>
                    <li class="last">
                        <p class="avatar"><img src="{avatar(1)}" width="60" height="60"/></p>
                        <p class="name">点评店铺： LUNA LIMITED设计品牌品质女装●潮女人气店铺●1024</p>
                        <p class="desc">很喜欢他们的衣服，虽然是均码的，但是大少正好，比较时尚有种田园风格！ </p>
                    </li>
                </ul>
            </div>
        </div> 
    </div>
    
    <div class="aside">
    	
        <div class="mod">
            <div class="head">相关阅读</div>
            <div class="body">
                <ul>
              {get sql="select * from table_content order by listorder desc,hits desc" rows="15"}
                <li><a href="{url($r[url])}">{str_cut($r[title],39)}</a></li>
              {/get}
              </ul>
            </div>
        </div> 
          
    </div>
</div>


{template 'footer.html'}
